package com.ethink.warehouse.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ethink.warehouse.api.info.MateInventoryOrderInfo;
import com.ethink.warehouse.api.info.MateInventoryOrderMoreInfo;
import com.ethink.warehouse.api.request.MateInventoryOrderAddRequest;
import com.ethink.warehouse.api.request.MateInventoryOrderQueryRequest;
import com.ethink.warehouse.api.request.MateInventoryOrderUpdateRequest;
import com.ethink.warehouse.api.response.MateInventoryOrderAddResponse;
import com.ethink.warehouse.api.response.MateInventoryOrderDeleteResponse;
import com.ethink.warehouse.api.response.MateInventoryOrderUpdateResponse;

import java.util.List;

/**
 * 入库/出库单 Service接口
 *
 * @author default
 * @date 2022-12-15
 */
public interface MateInventoryOrderService {

    /**
     * 分页查询
     *
     * @param request
     * @return
     */
    Page<MateInventoryOrderMoreInfo> queryMateInventoryOrder(MateInventoryOrderQueryRequest request);

    /**
     * 查询详情
     *
     * @param mateInventoryOrderId
     * @return
     */
    MateInventoryOrderInfo getMateInventoryOrderById(Long mateInventoryOrderId);

    /**
     * 查询列表
     *
     * @param request
     * @return
     */
    List<MateInventoryOrderMoreInfo> listMateInventoryOrder(MateInventoryOrderQueryRequest request);

    /**
     * 新增
     *
     * @param request
     * @return
     */
    MateInventoryOrderAddResponse addMateInventoryOrder(MateInventoryOrderAddRequest request);

    /**
     * 修改
     *
     * @param request
     * @return
     */
    MateInventoryOrderUpdateResponse updateMateInventoryOrder(MateInventoryOrderUpdateRequest request);

    /**
     * 删除
     *
     * @param mateInventoryOrderId
     * @return
     */
    MateInventoryOrderDeleteResponse deleteMateInventoryOrder(Long mateInventoryOrderId);

}